var pageNum = 0;
		var totalNum = null;
		var pageSize = 10;
        var oUrls = localStorage.getItem('oUrls');
        var viewModel = {
			  List: ko.observableArray(),
			   Delete: function (event,data) { 
			      	 console.log(event) 
			      	 var ids = event.id 
			      	 if(confirm('确定要删除吗')==true){
			      	 	 ajaxDelete("newDemo/"+ids) 
			      	 if(DeleteData.code == 0){
			      	 	alert("删除成功")
			      	 	 readList();
			      	 }
				       return true;
				
				    }else{
				       return false;
				    }
							      	
			    },
			    edit: function (event,data) { 
			      	 var ids = event.id ;
			      	 sessionStorage.setItem("listId",ids)
			      	 window.location.href="edit.html";  
			    },
			};
        var param = {};
        var params = JSON.stringify(param);
        var url = "newDemo/list/";
        $('#PageNation').attr({"params":params,"url":url});
//      function work(data){
//          if(data){
//              totalData = data.obj.totalElements;
//              viewModel.List(data.obj.content);
//              pageCount = data.obj.totalPages;
//              sessionStorage.setItem("pageCount",pageCount)
//          }
//      };
        function readList(){
            ajaxgetData(url + pageNum + '/' + pageSize + '/' + params)  
             if(getData){
                totalData = getData.obj.totalElements;
                viewModel.List(getData.obj.content);
                pageCount = getData.obj.totalPages;
                sessionStorage.setItem("pageCount",pageCount)
            }
        };
        readList();
     	ko.applyBindings(
		  viewModel
		)